package Jets.loader
{
	public class JLoadInfo
	{
		private var ms_loadURL:String="";
		private var ms_loadType:uint = 0;
		private var ms_loadStatus:uint = 0;
		private var ms_loadID:String = "";
		private var ms_loadSize:uint = 0;
		private var ms_loadLang:uint = 0;
		private var ms_loadData:* = null;
		private var ms_loadCallBack:Boolean = false;
		public var callFunction:Function = null;
		public function JLoadInfo()
		{
		}
		
		/**
		 * 加载文件的url地址
		 */
		public function set url(value:String):void
		{
			ms_loadURL = value;
		}
		public function get url():String
		{
			return ms_loadURL;
		}
		
		/**
		 * 加载文件的类型
		 * 文本文件
		 * xml文件
		 * 图片文件
		 * 二进制文件
		 */
		public function set type(value:uint):void
		{
			ms_loadType = value;
		}
		public function get type():uint
		{
			return ms_loadType;
		}
		
		/**
		 * 加载的状态:未加载，加载中，加载完成，加载失败
		 */
		public function set status(value:uint):void
		{
			ms_loadStatus = value;
		}
		public function get status():uint
		{
			return ms_loadStatus;
		}
		
		/**
		 * 加载文件的唯一标示符id
		 */
		public function set id(value:String):void
		{
			ms_loadID = value;
		}
		public function get id():String
		{
			return ms_loadID;
		}
		
		/**
		 * 加载完文件是否需要立即调用返回函数，返回函数需要传入才可以
		 */
		public function set isCallBack(value:Boolean):void
		{
			ms_loadCallBack = value;
		}
		public function get isCallBack():Boolean
		{
			return ms_loadCallBack;
		}
		
		public function set size(value:uint):void
		{
			ms_loadSize = value;
		}
		public function get size():uint
		{
			return ms_loadSize;
		}
		
		public function set lang(value:uint):void
		{
			ms_loadLang = value;
		}
		public function get lang():uint
		{
			return ms_loadLang;
		}
		
		public function set data(value:*):void
		{
			ms_loadData = value;
		}
		public function get data():*
		{
			return ms_loadData;
		}
		/**
		 * 设置加载文件完成后的返回函数，需要设置isCallBack=true 才会调用
		 */
		/*public function set callFunction(value:Function):void
		{
			ms_loadCallFunc = value;
		}
		public function get callFunction():Function
		{
			return ms_loadCallFunc;
		}*/
	}
}